package com.bothin.experiment4.model;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

@Table(name = "employee")
@Data
public class Employee {
    /**
     * 员工表主键
     */
    @Id
    @Column(name = "employee_id")
    private Integer employeeId;

    private String name;

    private String phone;

    private String account;

    private String password;

    private String role;
    /**
     * 帐号是否可用 0：不可用 1：可用
     */
    private Integer usable;

}